package com.kele.mapper;

import com.kele.entity.Document;
import com.kele.entity.Files;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.io.File;
import java.util.List;

/**
 * @Version 2019
 * @Author:kele
 * @Date:2021/4/19
 * @Content:
 * @Description：
 */
@Mapper
@Component
public interface FileMapper {

    //获取全部文件信息
    public List<Files> getAllFiles();
    public boolean addFile(Files files);
    Files findById(Integer id);
    //通过用户名查询
    List<Files> getFileByFileName(String file_name);
    //模糊查询
    List<Files> queryByKeyWord(String file_name);
}
